package base.decorator;

import com.itheima.service.UserService;
/**
 * 静态代理方式进行增强：装饰者模式
 */
public class UserServiceImplDecorator implements UserService {

    private UserService userService;

    public UserServiceImplDecorator() {
    }

    public UserServiceImplDecorator(UserService userService) {
        this.userService = userService;
    }

    public void save() {
        // 原始调用
        userService.save();
        // 增强（后置）
        System.out.println("刮大白");
    }
}
